﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;

namespace Lamex.mPPC.UI
{
    public partial class frmPPC_Main : frmModuleBase
    {
        public frmPPC_Main()
        {
            InitializeComponent();
            //menuStrip1.Text = ModuleNames.; //与AssemblyModuleEntry.ModuleName定义相同
        }

        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }

        private void menuPPC_HPL430_Cutting_List_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("Transfer_Panel_Cutting", 0, false, false), sender as ToolStripMenuItem);
        }

        private void menuPPC_HPL430_Cutting_Optimization_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmPPC_HPL430), sender as ToolStripMenuItem);
        }

        private void menuPPC_HPL430_Cutting_Progress_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("PPC_HPL430_Cutting_State", 0, false, false), sender as ToolStripMenuItem);
        }

        private void menuPPC_HPL430_Cutting_Analysis_Click(object sender, EventArgs e)
        {

        }

        private void menuPPC_Remain_Board_Material_List_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("View_PPC_RT_GetRemainMaterial", 0, false, false), sender as ToolStripMenuItem);
        }

        private void menuPPC_Remain_Board_To_Panel_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmPPC_Remain_Board_To_Panel), sender as ToolStripMenuItem);
        }

        private void menuPPC_HPL430_Cutting_Size_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("IE_PN_Basic_Cutting_Data", 0, false, false), sender as ToolStripMenuItem);
        }

    }
}